//
//  PersonDesignViewController.m
//  Candy
//
//  Created by DMT on 2018/3/20.
//  Copyright © 2018年 庄文盛 All rights reserved.
//

#import "PersonDesignViewController.h"
#import "YSHYSlideViewController.h"

@interface PersonDesignViewController ()
@property (weak, nonatomic) IBOutlet UILabel *name;
@property (weak, nonatomic) IBOutlet UILabel *school;
@property (weak, nonatomic) IBOutlet UILabel *coin;

@end

@implementation PersonDesignViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title=@"设计师";
    UIButton *back=[[UIButton alloc]init];
    UIImage *img=[UIImage imageNamed:@"Chevron"];
    [back setImage:img forState:UIControlStateNormal];
    //    back.frame=CGRectMake(0, 0, 12.5, 21);
    [back addTarget:self action:@selector(toIndexView) forControlEvents:UIControlEventTouchDown];
    UIBarButtonItem *left=[[UIBarButtonItem alloc]initWithCustomView:back];
    self.navigationItem.leftBarButtonItem=left;
    // self.tabBarController.tabBar.hidden=YES;
    self.editing=NO;
    [self.navigationController.navigationBar setBarTintColor:[UIColor whiteColor]];
    self.navigationController.navigationBarHidden=YES;
    [self.navigationController setNavigationBarHidden:NO];
    
    self.name.text = self.model.name;
    self.school.text = self.model.school;
    self.coin.text = self.model.coin;
    // Do any additional setup after loading the view from its nib.
}

- (void)toIndexView {
    [[YSHYSlideViewController shareInstance] ppp];
    self.tabBarController.tabBar.hidden=NO;
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)viewWillDisappear:(BOOL)animated {
    self.navigationController.navigationBar.translucent = true;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
